/**
 * @file Sfloat.h
 * @brief 
 * @author xuesong (wenshaoliu@foxmail.com)
 * @version 1.0
 * @date 2023-10-07
 * 
 * @copyright Copyright (c) 2023  by xuesong
 * 
 * @par 修改日志:
 * <table>
 * <tr><th>Date       <th>Version <th>Author  <th>Description
 * <tr><td>2023-10-07     <td>1.0     <td>xuesong   <td>内容
 * </table>
 */

#ifndef _SFLOAT_H_
#define _SFLOAT_H_

#ifdef __cplusplus
extern "C"
{
#endif

#include <math.h>
#include <float.h>
#include "types.h"

typedef uint8_t intu8;
// typedef int8_t int8;
typedef uint16_t intu16;
// typedef int16_t int16;
typedef uint32_t intu32;
// typedef int32_t int32;

typedef double FLOAT_Type;
typedef double SFLOAT_Type;
typedef intu32 RelativeTime;


uint16_t write_sfloat(SFLOAT_Type data);
SFLOAT_Type read_sfloat(intu16 int_data);

#ifdef __cplusplus
}
#endif

#endif /* endif */


